CRONO SDK 1.0.1
Constructor, destructor

Functions

CRONO_Return CRONO_Constr (CRONO_H *crono)
 
CRONO_Return CRONO_Destr (CRONO_H crono)
 

Detailed Description

Functions to construct and destruct Crono objects.

THE SDK mimic an object-oriented paradigm. A CRONO_H handle is first passed by reference to a constructor, which dynamically allocate all necessary resources, and then by value to all other functions operating on the object. A destructor function frees all resources when not needed any more.

Function Documentation

◆ CRONO_Constr()

CRONO_Return CRONO_Constr ( CRONO_H crono)

Constructs a new Crono object.

Parameters
cronoPointer to a CRONO_H to contain a new Crono object.
Returns
CRONO_Return
Examples
CRONO_SDK_Example.c.

◆ CRONO_Destr()

CRONO_Return CRONO_Destr ( CRONO_H  crono)

Frees all resources owned by a Crono handle.

Parameters
cronoHandle to an existing Crono object.
Returns
CRONO_Return
Examples
CRONO_SDK_Example.c.